<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        $this->app->register(TelescopeServiceProvider::class);
        $this->app->singleton(UserProvider::class, function ($app) {
            return new \Illuminate\Auth\EloquentUserProvider($app['hash'], $app['config']['auth.providers.users.model']);
        });
    }

    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        $this->bootAnnotationScanner();
    }

    protected function bootAnnotationScanner()
    {

    }

}
